package com.sqx.modules.toppingConfig.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 置顶时长配置
 * </p>
 *
 * @author wuchang
 * @since 2023-07-27
 */
@Getter
@Setter
@TableName("topping_config")
@ApiModel(value = "ToppingConfig对象", description = "置顶时长配置")
public class ToppingConfig implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("配置id")
    @TableId(value = "config_id", type = IdType.AUTO)
    private Long configId;

    @ApiModelProperty("小时数")
    private Integer hour;

    @ApiModelProperty("所需积分数")
    private Integer integral;

    @ApiModelProperty("是否启用 0否 1是")
    private Integer isEnable;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
}
